package com.project.hqshorttaxi.service;

import com.project.hqshorttaxi.dto.MenuDto;
import com.project.hqshorttaxi.dto.MenuParam;
import com.project.hqshorttaxi.entity.Menu;

import java.util.List;

public interface MenuService {

    Menu getById(Integer id);

    void insert(Menu entity) throws Exception;

    void update(Menu entity) throws Exception;

    List<Menu> listAll();

    List<Menu> listByPid(Integer pid);

    List<MenuDto> list(MenuParam param);
}
